﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SGCG.Model;

namespace SGCG.Actions
{
    public abstract class Action
    {
        private readonly PellBitmap bitmap;

        protected Action(PellBitmap bitmap)
        {
            this.bitmap = bitmap;
        }

        public virtual void HandleClick(MouseButtonEventArgs eventArgs, UIElement plotArea)
        {
        }

        public virtual void HandleRightClick(MouseButtonEventArgs eventArgs, UIElement plotArea)
        {
        }

        public virtual void HandleMouseMove(MouseEventArgs eventArgs, UIElement plotArea)
        {
        }

        public virtual void Cancel()
        {
        }

        public virtual UIElement Pallete
        {
            get { return null; }
        }

        protected PellBitmap PellBitmap
        {
            get { return this.bitmap; }
        }
    }
}
